from . import views
from django.conf.urls import url

# \w表示匹配包括_在内的任意单词字符[A-Za-z0-9_]
urlpatterns = [
    # 图片验证码# http://127.0.0.1:8000/image_codes/2c66cece-f4fd-4469-9ce8-8554277cc323/
    url(r"^image_codes/(?P<image_code_id>[\w-]+)/$", views.ImageCodeView.as_view()),
    url(r"^sms_codes/(?P<mobile>1[3-9]\d{9})/$", views.SMSCodeView.as_view())
]